package zhtt;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Created by zhtt on 2017/4/19.
 */
public class UserService {

    public static List<String> getList(){
        List<String> list=new ArrayList<String>();
        list.add("张三");
        list.add("王五");
        list.add("李四");
        return list;
    }

    public static Map<String,String> getMap(){
        Map<String,String> map=new HashMap<String, String>();
        map.put("name","张三");
        map.put("age","40");
        return map;
    }

    public static List<Map<String,String>> getMapList(){
        List<Map<String,String>> mapList=new ArrayList<Map<String,String>>();
        Map<String,String> map=new HashMap<String, String>();
        map.put("name","张三");
        map.put("age","40");
        mapList.add(map);
        Map<String,String> map2=new HashMap<String, String>();
        map2.put("name","王五");
        map2.put("age","30");
        mapList.add(map2);
        Map<String,String> map3=new HashMap<String, String>();
        map3.put("name","李四");
        map3.put("age","43");
        mapList.add(map3);
        return mapList;
    }

    public static List<List<Map<String,String>>> getMapListList(){
        List<List<Map<String,String>>> mapListList=new ArrayList<List<Map<String, String>>>();
        mapListList.add(getMapList());
        mapListList.add(getMapList());
        mapListList.add(getMapList());
        return mapListList;
    }

    public static Map<String,List<Map<String,String>>> getMapListMap(){
        Map<String,List<Map<String,String>>> mapListMap=new HashMap<String, List<Map<String, String>>>();
        mapListMap.put("办公室",getMapList());
        mapListMap.put("财务务",getMapList());
        mapListMap.put("技术处",getMapList());
        return mapListMap;
    }
}
